Release 10.1A: OpenEdge Data Management:
DataServer for ODBC
Progress query types
The DataServer provides several ways to submit a Progress query to an ODBC data source:
- Progress 4GL — This approach applies to the
DEFINEQUERYandFOREACHstatements. The DataServer generates SQL for each of these statements. You can use theQUERY–TUNINGoption to customize the queries that the DataServer passes to ODBC.- Progress SQL SELECT
— This approach applies to the SQLSELECTstatement. When you use this statement in a Progress procedure, the DataServer passes the SQL directly to the data source. This can improve performance, especially when counting records, and can also allow you to access certain types of data more effectively, such as aggregates.- Vendor-specific SQL — This approach applies to stored procedures. If you want to use specialized query syntax supported only by a vendor’s SQL extensions, you can use
RUN–STORED–PROCsend–sql–statementto send the syntax to your ODBC data source. For example, you can use this approach to modify the data definitions of your data source from the OpenEdge client. You might also use a stored procedure to includeBEGINSas a search criterion; this SQL query can result in better performance. For more information, see the "Sending SQL statements directly to the data source" section.Whether your application can take advantage of the strengths of a particular approach depends on the kind of query you are writing and the kind of data you are accessing. Another factor to keep in mind when you decide which technique to use for issuing queries is whether a query is better served by being processed by the client or by the server. Progress 4GL queries are processed by the client (except in the cases of most joins); SQL
SELECTstatements and vendor-specific SQL extensions are processed by the server (the ODBC data-source manager).
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |